class RemoveUserCredit < ActiveRecord::Migration
  def self.up
    drop_table :user_credits
    add_column :users, :level , :integer, :default => 0
    add_column :users, :score, :decimal, :precision => 10, :scale => 2, :default => 0.0
    add_column :users, :total_num, :integer, :default => 0
    add_column :users, :good_num, :integer, :default => 0
  end

  def self.down
  end
end
